Web Coding & Development All-in-One For Dummies by Paul McFedries
Author:Paul McFedries
Language: eng
Format: epub
ISBN: 9781119473794
Publisher: Wiley
Published: 2018-05-08T00:00:00+00:00
Preventing the default event action
Some events come with default actions that they perform when the event fires. For example, a link's click event opens the target URL, whereas a form’s submit event sends the form data to a script on the server. Most of the time these default actions are exactly what you want, but that's not always the case. For example, you might want to intercept a link click to perform some custom action, such as displaying a menu. Similarly, rather than letting the browser submit a form, you might prefer to massage the form data and then send the data via your script.
For these and many similar situations, you can tell the web browser not to perform an event’s default action by running the Event object’s preventDefault() method:
event.preventDefault();
event: A reference to the Event object that jQuery creates when an event fires
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Hello! Python by Anthony Briggs(9926)
The Mikado Method by Ola Ellnestam Daniel Brolund(9786)
Dependency Injection in .NET by Mark Seemann(9347)
Sass and Compass in Action by Wynn Netherland Nathan Weizenbaum Chris Eppstein Brandon Mathis(7787)
The Well-Grounded Java Developer by Benjamin J. Evans Martijn Verburg(7566)
Svelte with Test-Driven Development by Daniel Irvine(7228)
Test-Driven Development with PHP 8 by Rainier Sarabia(6963)
Layered Design for Ruby on Rails Applications by Dementyev Vladimir;(6827)
Secrets of the JavaScript Ninja by John Resig & Bear Bibeault(6539)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(6423)
Web Development with Django by Ben Shaw Saurabh Badhwar(6292)
React Application Architecture for Production by Alan Alickovic(6009)
Jquery UI in Action : Master the concepts Of Jquery UI: A Step By Step Approach by ANMOL GOYAL(5813)
Kotlin in Action by Dmitry Jemerov(5073)
Audition by Ryu Murakami(4590)
Software Architecture for Web Developers by Mihaela Roxana Ghidersa(4488)
Accelerating Server-Side Development with Fastify by Manuel Spigolon Maksim Sinik & Matteo Collina(4335)
Hands-On Full-Stack Web Development with GraphQL and React by Sebastian Grebe(4323)
Solidity Programming Essentials by Ritesh Modi(4045)
